package com.homedo.microservice.open.service.gateway.manager.web.gateway.support;

public abstract class ApplicationNameHolder {

    private static final ThreadLocal<String> APPLICATION_NAME_HOLDER = new ApplicationNameThreadLocal("ApplicationNameHolder");


    public static void reset() {
        APPLICATION_NAME_HOLDER.remove();
    }

    public static void set(String ApplicationName) {
        APPLICATION_NAME_HOLDER.set(ApplicationName);
    }

    public static String get() {
        return APPLICATION_NAME_HOLDER.get();
    }
}
